﻿//======================================================================
//
//        Copyright (C) 2015   
//        All rights reserved
//
//        filename : MonthReportRpt
//        description : 白卡统计月报表
//        created by XXX at  20150821
//
//======================================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using CardLogistics.Web.Components;
using System.Text;
using System.Data.OleDb;
using System.IO;
using CardLogistics.Model.CardArrival;


namespace CardLogistics.Web.MainPage.CardArrival.StorageCheck
{
    public partial class MonthReportRpt : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindRpt();
            }
        }

        /// <summary>
        /// 绑定Rpt数据
        /// </summary>
        private void BindRpt()
        {
            string month = Request.QueryString["month"];//月份
            StringBuilder sbStr = new StringBuilder();
            sbStr.Append(" SELECT * FROM v_MonthReport WHERE 1=1  and Issubmit=5");
            if (month.Trim().Length > 0)
                sbStr.Append(" and STORAGEDATE ='" + month.Trim() + "'");//年月
            sbStr.Append(" Order by ConNo,BatchNo,CheckNo");
            OracleXMLReportData.GenNodeXmlData(this, sbStr.ToString(), true);
        }
    }
}